<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="/struts-tags"  prefix="s" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="css/register-style.css">
<link rel="stylesheet" type="text/css" href="css/style.css">

<title>Register</title>
<s:head/>
</head>

<body>

<div id = "wrap">
	<div id = "banner">
		<%@include file="include/banner.jsp" %>	
	</div>
	
	<div id = "header">
		<div id = "anchor">
			Register Visitor
		</div>
		<div id = "menu">
			<%@include file="include/menu.jsp" %>	
		</div>	
	</div>
	
	<div id = "content">
		<div id = "register" >
		<s:if test="#session.USER != null">
		<s:form action="register" id="form" method="post" >
		
			<s:textfield label="First Name" name="firstname" />	
			
			<s:textfield label="Last Name" name="lastname" />
			
			<s:select label="Gender" name="gender" value="%{'Male'}" list="%{#{'Male':'Male','Female':'Female','Other':'Other'}}" />
					
			<s:textfield label="Telephone" name="telephone" />
			
			<s:textfield label="Email"  name="email" />
			
		 	<s:radio label="You are in" name="location" list="{'Europe','Africa','Austraulia','Asia','Ameria'}" />
		 	
			<s:checkboxlist label="What are you hobbies" name="hobby"
	  								list="{'Sport','Dance','Sing','Swimming','Cooking','Shopping'}" />
				
			<s:textarea label="Description" name="description" rows="5" cols="30"/>
			
			<s:submit label="submit" value="Register" method="validate" id="submit" cssClass = "submit" />
			
			<tr><td colspan="2">
				<a id="helpLink" href="<s:url action="toHelpRegister"/>" title="Help to Register">Help to Register</a>
			</td></tr>
			<s:if test="hasActionMessages()">
		   		<div id="welcome">
		     		<s:actionmessage theme="simple"/>
		     	</div>
			</s:if>
			
		</s:form>
			
		</s:if>
		<s:elseif test="#session.USER == null">
			<%@include file="include/login.jsp" %>
		</s:elseif>

		</div>
	</div>
	<div id="footer">
		<%@include file="include/footer.jsp" %>	
	</div>
</div>

</body>
</html>